<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>订单详情</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no,viewport-fit=cover">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="stylesheet" href="../../css/common.css" />
		<link rel="stylesheet" href="../../css/order/detail.css" />
		<script type="application/javascript" src="../../js/common/static_common.js"></script>
	</head>
	<body>
		<span id="app" v-cloak>
			<header title="订单详情"></header>
			<div class="_scroll-view data-v-c9afd568" style="overflow-x: hidden;">
				<div class="_div data-v-c9afd568 container" style="overflow-x: hidden;">
					<div class="_div data-v-c9afd568 top">
						<div class="_div data-v-c9afd568 msg">
							<div class="_div data-v-c9afd568 icons">
								<img class="_img data-v-c9afd568 image" mode="widthFix" src="../../images/order/daifukuan@2x.png" />
							</div>
							{{order.status==0?'待付款':''}} {{order.status==1?'待发货':''}} {{order.status==2?'待签收':''}}
							{{order.status==3?'待评价':''}} {{order.status==4?'已完成':''}}
						</div>
						<div class="_div data-v-c9afd568 tip" v-if="order.status==0">
							<p class="_p data-v-c9afd568 timer"> {{order.closeTime}} 自动取消</p>
						</div>
					</div>
					<a class="_a data-v-c9afd568 dispatching_status" v-if="order.status>1" href="javascript:void(0)" @click="Jump.to(page.logistics.index)">
						<img alt class="_img data-v-c9afd568 siluncar" src="../../images/order/silun_car.png" />
						<div class="_p data-v-c9afd568 timer">{{order.expressInfo?order.expressInfo[0].context:"暂无物流资讯"}}</div>
						<div class="_div data-v-c9afd568 icon"></div>
					</a>
					<div class="_div data-v-c9afd568 info">
						<p class="_p data-v-c9afd568 user_name">
							收货人：{{order.receivingName}}
							<span class="_span data-v-c9afd568 tel">{{order.tel}}</span>
						</p>
						<div class="_div data-v-c9afd568 dv">
							<img class="_img data-v-c9afd568 icon_gps" src="../../images/shouye/dingwei@2x.png" />

							<p class="_p data-v-c9afd568 address">收货人地址:{{order.receivingAddress}}</p>
						</div>
						<div class="_div data-v-c9afd568 address_line">
						</div>
					</div>
					<div class="_div data-v-c9afd568 mall" v-for="item in order.orderDetails" @click="todetail(item)">
						<div class="_div data-v-c9afd568 imgbox">
							<img class="_img data-v-c9afd568 mall_img" data-comkey="0" data-eventid="0-0" :src="imgUrl+item.logoPath.split(',')[0]" />
						</div>
						<span class="_span data-v-c9afd568 mall_name" data-comkey="0" data-eventid="1-0">{{item.name}}</span>
						<span class="_span data-v-c9afd568 mall_num">× {{item.count}}</span>
						<span class="_span data-v-c9afd568 mall_specs">
						</span>
						<div class="_div data-v-c9afd568 mall_price">
							<div class="_div data-v-c9afd568 pay_type">
								<span class="_span data-v-c9afd568 price">
									<span class="_span data-v-c9afd568 money">
										<span class="_span data-v-c9afd568 money_cent">￥</span>
										{{item.price}}
									</span>
									<span class="_span data-v-c9afd568 cent">
										<span class="_span data-v-c9afd568 money_cent" v-if="item.points!=0 && item.points"> +积分 {{item.points}}</span>
									</span>
								</span>
							</div>
						</div>
					</div>
					<div class="_div data-v-c9afd568 order-info">
						<div class="_div data-v-c9afd568 num">订单编号：{{order.orderNo}}</div>
						<div class="_div data-v-c9afd568 date">创建时间：{{order.createTime}}</div>
					</div>
					<p class="_p data-v-c9afd568 text">
						商品金额
						<span class="_span data-v-c9afd568 text1 red_color">¥{{order.originPrice}}</span>
					</p>
					<p class="_p data-v-c9afd568 text" v-if="order.points!=0">
						商品积分价
						<span class="_span data-v-c9afd568 text1 orange_color">{{order.amount}}</span>
					</p>
					<div class="_p data-v-c9afd568 text" v-if="order.points!=0">扣除积分
						<span class="_span data-v-c9afd568 text1 orange_color">{{order.points}}</span>
					</div>
					<div class="_div data-v-c9afd568 text text_last">
						运费
						<span class="_span data-v-c9afd568 text1 red_color">￥0.00</span>
					</div>
					<div class="_div data-v-c9afd568 text text_last text_lasttr">
						<p class="_p data-v-c9afd568 text_last_left">合计</p>
						<p class="_p data-v-c9afd568 text_last_right">
							<span class="_span data-v-c9afd568 textr red_color">
								<span class="_span data-v-c9afd568 money_cent">￥</span>
								{{order.amount}}
							</span>
							<span class="_span data-v-c9afd568 textr red_color" v-if="order.amount>0&&order.points>0">+</span>
							<span class="_span data-v-c9afd568 textr orange_color" v-if="order.points>0">
								<span class="_span data-v-c9afd568 money_cent">积分</span>{{order.points}}
							</span>
						</p>
					</div>
					<div class="_div data-v-c9afd568 zhanwei">
					</div>
					<div class="_div data-v-c9afd568 btn-group clearfix" v-if="order.status!=1 && order.status!=4">
						<ul class="_ul data-v-c9afd568 btns clearfix">
							<div class="_div data-v-c9afd568 btn btn-topay" v-if="order.status == 0" @click="toPay()">去付款</div>
							<div class="_div data-v-c9afd568 btn btn-topay" v-if="order.status == 2" @click="receive()">确认收货</div>
							<div class="_div data-v-c9afd568 btn btn-topay" v-if="order.status == 3" @click="evaluate()">去评价</div>
							<div class="_div data-v-c9afd568 btn btn-cancel" v-if="order.status == 0">
								<div class="_picker data-v-c9afd568">
									<div class="_view data-v-c9afd568 picker" @click="cancel_order()"> 取消订单 </div>
								</div>
							</div>
						</ul>
					</div>
				</div>
			</div>
			<form :action="baseUrl+'order/pay/appWx'" style="display: none;" method="get" enctype="application/x-www-form-urlencoded" ref="sForm">
				<input ref="orderNo" type="text" name="orderNo" v-model="orderNo"/>
				<input ref="openid" type="text" name="openid" v-model="openid"/>
				<input ref="httpIpPort" type="text" name="httpIpPort" v-model="httpIpPort"/>
				<input type="submit" ref="submitForm" value="提交"/>
			</form>
		</span>
	</body>
	<script type="application/javascript" src="../../js/order/detail.js"></script>
</html>
